﻿<?php
	session_start();

	require_once("../config/config.php");
	
	// on récupére les variables POST
	$log = $_POST["login"];
	$pass = $_POST["pass"];
	
	//on test les login et password
	if ( $pass == "admin" && $log == "admin" ){
		// identification valide
		$_SESSION["logAdmin"]=$log ;
		header("location: ../index.php");
	}
	else {
		header("location: ../index.php");
      		//"Login ou mot de passe incorrect"
      	}
    	
?>

